//
//  QXPopoverCenterVC.swift
//  QXWeibo
//
//  Created by QinXin on 15/6/27.
//  Copyright © 2015年 labi3285_Lab. All rights reserved.
//

import UIKit

class QXPopoverCenterVC: UIViewController {
    
    // 浮动窗口的管理对象
    lazy var popoverPc: QXPopoverPC = {
        let x = (self.view.bounds.width - 200) * 0.5
        let ppc = QXPopoverPC(prestentFrame: CGRectMake(x, 56, 200, 300))
        return ppc
        }()
    
    class func create() -> QXPopoverCenterVC {
        
        let vc = UIStoryboard(name: "QXPopoverVC", bundle: nil).instantiateViewControllerWithIdentifier("popVc_center") as! QXPopoverCenterVC
        
        vc.transitioningDelegate = vc.popoverPc
        vc.modalPresentationStyle = UIModalPresentationStyle.Custom
        
        return vc
        
    }

}
